pygrub: introduce easier to parse output format
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 14 Jul 2010 15:36:23 +0000 (16:36 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 14 Jul 2010 15:36:23 +0000 (16:36 +0100)
commitdc04fe42de492095fa4900cde51e449fb280803e
treea2b89a9db755c4f78f75933813605c6e1d47f85d
parentc89747d2e9deeca490e445aa03503c193ea6303e
pygrub: introduce easier to parse output format

libxl would rather like to parse the output of pygrub. Rather than
implement an SXP parser in libxl add a --output-format option to
pygrub which can select an alternative, simpler to parse,
format. Available formats are:
    sxp: current SXP output format;
    simple: simple key+value output with \n separating item ( for
debugging). key and value are separated by a single
space (and key therefore cannot contain a space);
    simple0: as simple but with \0 as a separator;

Also add --output-directory to allow temporary files to be placed
somewhere other than /var/run/xend/boot.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tools/pygrub/src/pygrub